<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<script type="text/javascript" src="/js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
	<table class="table table-striped table-hover table-bordered">
		<caption style="text-align:center">部门：${requestScope.dept.deptName }</caption>
		<thead>
			<tr>
	  	 		<td>员工编号</td>
	  	 		<td>员工姓名</td>
	  	 		<td>员工薪水</td>
  	 		</tr>
		</thead>
		<tbody>
			<c:if test="${requestScope.dept.emps != null }">
				<c:forEach var="emp" items="${requestScope.dept.emps }">
					<tr class="active">
	  	 				<td>${emp.empId }</td>
	  	 				<td>${emp.empName }</td>
	  	 				<td>${emp.salary }</td>
  	 				</tr>
				</c:forEach>
			</c:if>
			<c:if test="${requestScope.dept.emps == null }">
				<tr>
					<td colspan="3">没有员工信息！</td>
				</tr>
			</c:if>
		</tbody>
	</table>
</body>
</html>